<?php

namespace IDock\Insurance\CHAC\Response;

use IDock\Http\Response;
use IDock\Insurance\CHAC\Request\GPolicyPaymentRequest;
use IDock\Printer\PolicyPaymentPrinter;

class GPolicyPaymentResponse extends AllCHACResponse
{
    /**
     * @var PolicyPaymentPrinter $printer
     */
    public $printer = PolicyPaymentPrinter::class;

    /*** @var  GPolicyPaymentRequest $request */
    public $request;

    public function printerInit(): Response
    {
        $this->printer = new $this->printer;

        $this->printer->payUrl = $this->request->build();

        return $this;
    }

}
